package com.atguigu.gmall.order.biz;

import com.atguigu.gmall.mq.ware.WareStockResultMsg;
import com.atguigu.gmall.order.entity.OrderInfo;
import com.atguigu.gmall.order.vo.OrderConfirmRespVo;
import com.atguigu.gmall.order.vo.OrderSplitReps;
import com.atguigu.gmall.order.vo.OrderSubmitVo;

import java.util.List;

/**
 * @author tangsy
 * @Description TODO
 * @date 2022/12/21 20:22
 * @Version 1.0
 */
public interface OrderBizService {

    OrderConfirmRespVo getConfirmData();

    Long submitOrder(OrderSubmitVo submitVo, String tradeNo);

    void closeOrder(Long id, Long userId);

    void payedOrder(String out_trade_no, Long userId);

    void updateOrderStockStatus(WareStockResultMsg result);

    List<OrderSplitReps> orderSplit(Long orderId, String json);

    Long saveSeckillOrder(OrderInfo info);

}
